import request from '@/request/index.js';

export function submitAddress(data) {
	return request.post({
		url: '/app-api/user/patient-user-address/create-or-update-user-address',
		data: data || {},
		custom: {
			title: "新增/修改收货地址",
			authentication: true
		}
	});
}

export function deleteAddress(params) {
	return request.post({
		url: '/app-api/user/patient-user-address/del-patient-user-address',
		params: params || {},
		custom: {
			title: "删除收货地址",
			authentication: true
		}
	});
}

export function getAddressDetails(params) {
	return request.get({
		url: '/app-api/user/patient-user-address/get-patient-user-address-detail',
		params: params || {},
		custom: {
			title: "获取收货地址详情",
			authentication: true
		}
	});
}

export function getAddressList(params) {
	return request.get({
		url: '/app-api/user/patient-user-address/get-patient-user-address-list',
		params: params || {},
		custom: {
			title: "获取收货地址列表",
			authentication: true
		}
	});
}
